<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>

    <jsp:include page="/WEB-INF/jsp/include/head.jsp"/>
</head>
<body>

<ol class="breadcrumb">
    <li><strong>当前位置： </strong>经费管理</li>
    <li class="active">经费查询</li>
</ol>


<div class="panel panel-info">
    <div class="panel-heading">
        <h3 style="display: inline-block" class="panel-title">查询</h3>
    </div>
    <div class="panel-body">
        <form id="form_search" class="form-horizontal row">
            
            <div class="form-group col-sm-6">
                <label class="col-sm-4  control-label  ">日　　期：</label>
                <div class="col-sm-8">
                    <div class="input-group">
                        <div class="input-group date form_date timeInput">
                       <span class="input-group-addon">
                          <span class="glyphicon glyphicon-calendar"></span>
                       </span>
                            <input class="form-control " type="text" name="startTime">
                        </div>
                        <span class="input-group-addon"
                              style="width: auto;padding-right: 3px;padding-left: 3px;border-width: 0px;background-color: transparent">
                          <span>~</span>
                       </span>
                        <div class="input-group date form_date timeInput">
                       <span class="input-group-addon">
                          <span class="glyphicon glyphicon-calendar"></span>
                       </span>
                            <input class="form-control " type="text" name="endTime">
                        </div>
                    </div>
                </div>
            </div>


            <div class="form-group col-sm-2">
                <div class="col-sm-8  col-sm-offset-4">
                    <button id="btn_search" type="button" class="btn btn-default "><span
                            class="glyphicon glyphicon-search"></span>&nbsp;查&nbsp;询&nbsp;</button>
                </div>
            </div>
        </form>

    </div>
</div>

<table id="table_data"></table>


<jsp:include page="/WEB-INF/jsp/include/footer.jsp"/>


<script>

    var $table_data = $('#table_data'), $btn_search = $('#btn_search');

    $table_data.bootstrapTable({
        url: 'business/fundInspectorSelect/select',
        striped: true,
        cache: false,
        sidePagination: 'client',
        searchOnEnterKey: false,
        pageSize: 10,
        pageList: [ 10, 20,50],
        pageNumber: 1,
        pagination: true,
        queryParams: function (params) {
            $.extend(params, $("#form_search").serializeObject());
            return params
        },
        columns: [
            {
                formatter: function (value, row, index) {
                    return [index + 1].join('');
                }
            },
            {
                field: 'checkTime',
                title: '日期',
                formatter: function (value, row, index) {
                    return $.Helper.dataTimeHelper.int2DateTimeString(value);
                }
            },

            {
                field: 'businessInfo',
                title: '审查（核查）单位',
                formatter: function (value, row, index) {
                    return value&&value.companyName;
                }
            },
            {
                field: 'inspectorInfo',
                title: '开户行',
                formatter: function (value, row, index) {
                    return value&&value.bankName;
                }
            },
            {
                field: 'inspectorInfo',
                title: '银行卡号',
                formatter: function (value, row, index) {
                    return value&&value.bankCard;
                }
            },
            {
                field: 'workDay',
                title: '天数（天）'
            },
            {
                field: 'dailySalary',
                title: '日薪资(元)'
            },
            {
                title: '小计(元)',
                formatter: function (value, row, index) {
                    return row.workDay * row.dailySalary;
                }
            }
        ]
    });



    $btn_search.click(function () {
        $table_data.bootstrapTable('refresh');
    });

    $.sysPlugin.initDateTimeInput();
    $.sysPlugin.initSimpleSelect2();
</script>




</body>
</html>